@charset "utf-8";
@import "_config";

.ucs-input-control {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  position: relative;
  .ucs-placeholder {
    position: absolute;
    left: 1px;
    top: 1px;
    right: 1px;
    bottom: 1px;
    *top:2px;
    *bottom:2px;
    padding-left: 10px;
    line-height: nth($global-input, 6);
    color: $global-placeholder;
    background: #fff;
    text-align: left;
  }
  .ucs-placeholder.hide{
    display: none;
  }
  @at-root {
    .ucs-input, .ucs-password {
      float: left;
      background-color: nth($global-input, 1);
      border: 1px solid nth($global-input, 2);
      height: nth($global-input, 6);
      line-height: 100%;
      line-height: (nth($global-input, 6)) \9;
      padding: 0 10px;
      //width: nth($global-input, 5)- 20;
      width: 260px;
      overflow: hidden;
      color: nth($global-input, 3);
      font-size: nth($global-input, 4);
      font-family: $global-font-family;
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out 0s; //input输入类
      //禁止输入类
      &.disabled {
        background-color: nth($global-input-event, 5);
      }
      //输入错误
      &.error {
        border-color: nth($global-input-event, 3);
        color: nth($global-input-event, 4);
      }
      //获取焦点
      &.focus, &:focus {
        /*border-color: nth($global-input-event, 1);
        color: nth($global-input-event, 2);
        box-shadow: 2px 2px 5px #ebeaea;*/
        border-color: #69f;
        color: #333;
        //box-shadow: 2px 2px 5px #ebeaea;
      }
    }

    div.ucs-input, div.ucs-password {
      line-height: nth($global-input, 6)
    }
  }
}

.ucs-textarea-control {
  .ucs-textarea {
    padding: 5px;
    line-height: 20px;
    resize: none;
  }
}